<%@ page import="java.util.Random" %><%--
  Created by IntelliJ IDEA.
  User: Huyc
  Date: 2020/11/28
  Time: 15:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>班级信息列表</title>
    <link rel="stylesheet" href="<%=path%>/css/bootstrap.min.css">
    <!--external css-->
    <link href="<%=path%>/css/font-awesome.css" rel="stylesheet"/>
    <!-- Custom styles for this template -->
    <link href="<%=path%>/css/style_index.css" rel="stylesheet">
    <link href="<%=path%>/css/style-responsive.css" rel="stylesheet">
    <link rel="stylesheet" href="<%=path%>/js/skins/square/red.css">
    <style>
        .pagesize {
            width: 70px;
            float: right;
            border-radius: 5px;
            margin-top: 20px;
        }
    </style>
</head>

<body>
<section id="main-content">
    <section class="wrapper">
        <h3><i class="fa fa-angle-right"></i> 班级信息管理</h3>
        <div class="panel panel-default">
            <div class="panel-body">
                <div class="form-inline">
                    <input type="text" class="form-control" id="txtno" placeholder="按班级编号查询"/>
                    <input type="text" class="form-control" id="txtname" placeholder="按班级名称查询"/>
                    <input type="text" class="form-control" id="txtteachername" placeholder="按班主任查询"/>
                    <button class="btn btn-primary" id="btnQuery">查询</button>
                    <button class="btn btn-primary" id="btnAdd">新增</button>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="content-panel">
                    <h4><i class="fa fa-angle-right"></i> 班级列表</h4>
                    <hr>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>班级编号</th>
                            <th>班级名称</th>
                            <th>年级</th>
                            <th>班主任名称</th>
                            <th>班级口号</th>
                            <th>班级人数</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="tbody">
                        </tbody>
                    </table>
                </div>
                <select class="form-control pagesize" id="pagesize">
                    <option>10</option>
                    <option>20</option>
                    <option>30</option>
                    <option>50</option>
                    <option>100</option>
                </select>
                <ul class="pagination" id="divpage"></ul>
            </div>
            <!-- /col-md-12 -->
        </div>
        <!-- row -->
    </section>
</section>
<div class="panel-body" id="div_add" style="display: none;padding: 20px;">
    <input type="hidden" id="hidNo"/>
    <div class="row">
        <div class="form-group">
            <label>班级编号</label>
            <input type="text" id="no" class="form-control"/>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label>班级名称</label>
            <input type="text" id="name" class="form-control"/>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label>年级</label>
            <input type="text" id="grade" class="form-control"/>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label>班主任姓名</label>
            <input type="text" id="teacher_name" class="form-control"/>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label>班级口号</label>
            <input type="text" id="slogan" class="form-control"/>
        </div>
    </div>
    <div class="row text-center">
        <button class="btn btn-success" id="btn_submit">提交</button>
    </div>
</div>
</body>
<script src="<%=path%>/js/jquery-1.8.3.min.js"></script>
<script src="<%=path%>/js/layer/layer.js"></script>
<script src="<%=path%>/js/bootstrap.min.js" charset="UTF-8"></script>
<script src="<%=path%>/js/WebApi.js"></script>
<script src="<%=path%>/js/jqPaginator.js"></script>
<script src="studentclass.js?ver=<%=new Random().nextDouble()%>"></script>
</html>
